package com.mis.clothespos.echarts.service.impl;

import com.mis.clothespos.echarts.domain.OrderItem;
import com.mis.clothespos.echarts.mapper.OrderItemMapper;
import com.mis.clothespos.echarts.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@Primary
public class OrderServiceImpl implements OrderService {


    @Autowired
    OrderItemMapper orderItemMapper;

    @Override
    public List<OrderItem> getTypeRecordByNowDay(Integer clothestypeid) {
        return orderItemMapper.getTypeRecordByNowDay(clothestypeid);
    }

    @Override
    public List<OrderItem> getStyleRecordByNowDay() {
        return orderItemMapper.getStyleRecordByNowDay();
    }

    @Override
    public List<OrderItem> getTypeRecordBySevenDay(Integer clothestypeid) {
        return orderItemMapper.getTypeRecordBySevenDay(clothestypeid);
    }

    @Override
    public List<OrderItem> getStyleRecordBySevenDay() {
        return orderItemMapper.getStyleRecordBySevenDay();
    }
}
